package us.mooresr.aircraftscheduling.client.events;

import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.event.shared.EventHandler;
import java.lang.Long;
import com.google.gwt.event.shared.HasHandlers;
import com.google.gwt.event.shared.HandlerRegistration;

public class UserLoggedOutEvent extends
		GwtEvent<UserLoggedOutEvent.UserLoggedOutHandler> {

	public static Type<UserLoggedOutHandler> TYPE = new Type<UserLoggedOutHandler>();
	

	public interface UserLoggedOutHandler extends EventHandler {
		public void onUserLoggedOut(UserLoggedOutEvent event);
	}

	public interface UserLoggedOutHasHandlers extends HasHandlers {
		public HandlerRegistration addUserLoggedOutHandler(
				UserLoggedOutHandler handler);
	}

	public UserLoggedOutEvent() {
		
	}

	@Override
	protected void dispatch(UserLoggedOutHandler handler) {
		handler.onUserLoggedOut(this);
	}

	@Override
	public Type<UserLoggedOutHandler> getAssociatedType() {
		return TYPE;
	}

	public static Type<UserLoggedOutHandler> getType() {
		return TYPE;
	}

	public static void fire(HasHandlers source) {
		source.fireEvent(new UserLoggedOutEvent());
	}
}
